package com.itheima.shop.web.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(name = "BookServlet", value = "/BookServlet")
public class BookServlet extends BaseServlet {
    private void findAllBook(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        try {
            int a=1/0;
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("错误");
            //response.setHeader("location", "message.jsp");
            //response.setStatus(302);
            //request.getRequestDispatcher("message.jsp").forward(request,response);
            //response.sendRedirect("message.jsp");
        }
    }
}
